/*
 * @Descripttion: 加载图标资源 svg,alifont,awesome
 * @version:
 * @Author: 周子尧
 * @Date: 2021-01-27 11:21:27
 * @LastEditors: 周子尧
 * @LastEditTime: 2021-02-05 14:46:05
 */
import { loadStyle } from '@/utils'

[
  // fontawesome图标库
  'https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',
  // 阿里图标库(按需引入项目)
  'https://at.alicdn.com/t/font_1138001_7f8vcxtzby.css'
].forEach(link => {
  loadStyle(link)
})

// 加载@/icons/svg图标
const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
